package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2019-09-09
 */
@TableName("t_smslog")
public class Smslog extends Model<Smslog> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private String phone;
	private String msg;
	private Long mid;
	private Long mpid;
	private Long sid;
	private Long ywid;
	private Integer smstplid;
	private Date createtime;
	private Integer smsleft;
	private Integer state;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getSmsleft() {
		return smsleft;
	}

	public void setSmsleft(Integer smsleft) {
		this.smsleft = smsleft;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getSmstplid() {
		return smstplid;
	}

	public void setSmstplid(Integer smstplid) {
		this.smstplid = smstplid;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getYwid() {
		return ywid;
	}

	public void setYwid(Long ywid) {
		this.ywid = ywid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Smslog{" +
			"id=" + id +
			", phone=" + phone +
			", msg=" + msg +
			", mid=" + mid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", smsleft=" + smsleft +
			"}";
	}
}
